

import 'package:FlutterStudy/generated/assets.dart';
import 'package:get/get.dart';

class MineController extends GetxController {

  var _bg=Assets.assetsImagesPic2.obs;
  set bg(String value)=> this._bg.value = value;
  get bg=>this._bg.value;
  var count = 0.obs;
  void increment() {
    count.value++; // 通过 .value 来更新值
    // 或者直接 count++，.obs 变量重载了运算符
  }

}